package com.allenlee.mvphelper.net.retrofit;


import com.allenlee.mvphelper.base.bean.HttpResult;
import com.allenlee.mvphelper.module.login.LoginBean;

import java.util.HashMap;

import io.reactivex.Flowable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface APIService {

    @POST("login/")
    @FormUrlEncoded
    Flowable<HttpResult<LoginBean>> login(@FieldMap HashMap<String, String> params);

    @GET("login.json")
    Flowable<HttpResult<LoginBean>> getLoginInfo();
}